﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class PhongBUS
    {
        public static List<PhongDTO> layDSPhongTheoMaLoaiPhong(long maLoaiPhong)
        {
            return PhongDAO.layDSPhongTheoMaLoaiPhong(maLoaiPhong);
        }
        public static bool capNhap(PhongDTO phong)
        {
            return PhongDAO.capNhat(phong);
        }
        public static bool xoa(long maPhong)
        {
            return PhongDAO.xoa(maPhong);
        }
        public static bool them(PhongDTO phong,long maLoaiPhong)
        {
            if (string.Compare(phong.TenPhong, "", true) == 0)
                return false;
            return PhongDAO.them(phong,maLoaiPhong);
        }
        public static List<PhongDTO> layDSPhong()
        {
            return PhongDAO.layDSPhong();
        }
        public static bool capNhatSoKhachHienCo(long maPhong,long soKhach)
        {
            return PhongDAO.capNhatSoKhachHienCo(maPhong,soKhach);
        }

    }
}
